gdk: Add big fat warning about updating XSettings
authorBastien Nocera <hadess@hadess.net>
Mon, 15 Nov 2010 17:13:46 +0000 (17:13 +0000)
committerBastien Nocera <hadess@hadess.net>
Mon, 15 Nov 2010 17:15:19 +0000 (17:15 +0000)
There's a tool to see if we forgot to update the gdk_settings_map
array, or got the offsets wrong. Mention those above the XSettings
list.

gdk/x11/gdksettings.c

index e1c2c56ca888d72af6c5df13c25b585afbbf231f..0aa3fcb5ca06473079bce16c92b2ab0af04525dd 100644 (file)
 #define GDK_SETTINGS_X_NAME(nth)        (gdk_settings_names + gdk_settings_map[nth].xsettings_offset)
 #define GDK_SETTINGS_GDK_NAME(nth)      (gdk_settings_names + gdk_settings_map[nth].gdk_offset)
 
+/* WARNING:
+ * You will need to update gdk_settings_map when adding a
+ * new setting, and make sure that checksettings does not
+ * fail before committing */
 static const char gdk_settings_names[] =
   "Net/DoubleClickTime\0"     "gtk-double-click-time\0"
   "Net/DoubleClickDistance\0" "gtk-double-click-distance\0"